package me.firstapp.common.exception;

/**
 * 状态库
 * 
 * @Created by keanu.
 * @Copyright (c) 2016, All Rights Reserved.
 * @website http://firstapp.me
 */
public class StatusHouse {

	// ====================通用异常状态===================================================
	public static StatusObject COMMON_STATUS_OK = new StatusObject("ok", "成功！");
	public static StatusObject COMMON_STATUS_ERROR = new StatusObject("error", "发生未知错误！");
	public static StatusObject COMMON_STATUS_PARAM_REQUIRED_ERROR = new StatusObject("0001", "参数[%s]为必填项");
	public static StatusObject COMMON_STATUS_REQUEST_TIMEOUT = new StatusObject("0002", "服务请求超时!");
	public static StatusObject ACCOUNT_VERIFY_FAILED = new StatusObject("0003", "未授权的请求,错误码：(a000)");
	public static StatusObject COMMON_NO_LOGIN_OR_TIMEOUT = new StatusObject("0004", "未登录或登录超时");
	public static StatusObject COMMON_FILE_MAX_TWO = new StatusObject("0005", "文件的大小不能超过2M");
	public static StatusObject COMMON_PARAMETER_ERROR = new StatusObject("0006", "参数错误");
	public static StatusObject COMMON_FEI_FA_ERROR = new StatusObject("0007", "非法操作");
	// ====================用户相关异常状态===================================================
	public static StatusObject STATUS_PAGE_ERROR_NOT_CONCERN_WEIXIN = new StatusObject("10001", "未关注微信公众号,请先关注！");
	public static StatusObject STATUS_MEMBER_NOT_EXIST = new StatusObject("10002", "用户不存在");
	public static StatusObject STATUS_CARDFEE_NOT_EXIST = new StatusObject("10003", "月卡不存在");
	public static StatusObject STATUS_ORDER_NOT_EXIST = new StatusObject("10004", "订单不存在");
	public static StatusObject STATUS_ORDER_ERROR = new StatusObject("10005", "订单异常");
	public static StatusObject STATUS_ORDER_STATUS_ERROR = new StatusObject("10006", "订单状态异常");
	public static StatusObject STATUS_MEMBER_MOBILEFARE_NOT_EXIST = new StatusObject("10007", "话费卡不存在");
	public static StatusObject STATUS_STOCK_NOT_ENOUGH = new StatusObject("10008", "库存不足");
	public static StatusObject STATUS_PRODUCT_EXISTED = new StatusObject("10009", "商品已存在");
	public static StatusObject STATUS_PRODUCT_NOT_EXIST = new StatusObject("10010", "商品不存在");
	public static StatusObject STATUS_COPY_INFO_ERROR = new StatusObject("10011", "复制的信息格式不正确");
	public static StatusObject STATUS_CASH_AMOUNT_ZERO_ERROR = new StatusObject("10012", "提现金额不能小于等于0");
	public static StatusObject STATUS_MEMBER_NO_USE_ERROR = new StatusObject("10013", "用户已被禁用");
	public static StatusObject STATUS_MONTH_CARD_EXPIRE_ERROR = new StatusObject("10014", "月卡已过期");
	public static StatusObject STATUS_MEMBER_PRICE_SYS_PRICE_ERROR = new StatusObject("10015", "售价不能低于平台价");
	public static StatusObject STATUS_MEMBER_PRICE_TOO_LOW = new StatusObject("10016", "售价过低");
	public static StatusObject STATUS_RETURN_ORDER_EXISTED = new StatusObject("10017", "退货单已存在");
	public static StatusObject STATUS_MEMBER_STATUS_ERROR = new StatusObject("100018", "用户状态异常");
	public static StatusObject STATUS_PRODUCT_OFF_ERROR = new StatusObject("100019", "商品已下架");
	public static StatusObject STATUS_BALANCE_NOT_ENOUGH_ERROR = new StatusObject("100020", "账户余额不足");
	public static StatusObject STATUS_ACCOUNT_NOT_NORMAL_ERROR = new StatusObject("100021", "账户异常");

}
